<!--时间线页面-->
<template>
  <div class="block">
    <el-timeline>
      <el-timeline-item v-for="(item,index) of timeline" :key="index" :timestamp="item.timestamp" placement="top">
        <el-card>
          <h4>{{ item.title }}</h4>
          <p>{{ item.content }}</p>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timeline: [
        {
          timestamp: '2021/4/20',
          title: '上传会议',
          content: '中美高层会议分析'
        },
        {
          timestamp: '2021/4/20',
          title: '更改密码',
          content: '用户更新密码'
        },
        {
          timestamp: '2021/4/19',
          title: '用户登录',
          content: '用户登录，登陆地点: 安徽省合肥市电信'
        },
        {
          timestamp: '2021/4/17',
          title: '用户注册',
          content: '用户注册，用户名为: test1，当前密码较弱，建议你及时修改密码。'
        }
      ]
    }
  }
}
</script>
